package ModelLayer;

public class ProductLine {
	
	private int productLineId;
	private int quantity;
	private Product prod;
	private SalesOrder order;
	
	
	public ProductLine(Product prod, SalesOrder order, int productLineId, int quantity) {
		super();
		this.prod = prod;
		this.order = order;
		this.productLineId = productLineId;
		this.quantity = quantity;
	}
	public ProductLine(){
		
	}
	
	public void setProduct(Product prod){
	    this.prod = prod;
	    }
	
	 public Product getProduct(){
		return prod;
	 }
	
	public int getProductLineId() {
		return productLineId;
	}
	public void setProductLineId(int productId) {
		this.productLineId = productId;
	}
	public int getQuantity() {
		return quantity;
	}
	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}
	
	public SalesOrder getOrder() {
		return order;
	}

	public void setOrder(SalesOrder order) {
		this.order = order;
	}
	
	 public void print(){
			System.out.println("Quantity: " + quantity);
			System.out.println("Sales Line Id: " + productLineId);
		}

}
